<html>
<head><meta charset="utf-8"><title>optional dependencies &amp; lock files · t-cargo · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/index.html">t-cargo</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/optional.20dependencies.20.26.20lock.20files.html">optional dependencies &amp; lock files</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="239717118"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/optional%20dependencies%20%26%20lock%20files/near/239717118" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jethro <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/optional.20dependencies.20.26.20lock.20files.html#239717118">(May 21 2021 at 08:50)</a>:</h4>
<p>(deleted)</p>



<a name="239717190"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/optional%20dependencies%20%26%20lock%20files/near/239717190" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jethro <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/optional.20dependencies.20.26.20lock.20files.html#239717190">(May 21 2021 at 08:50)</a>:</h4>
<p>Is it intentional that this doesn't put <code>mio</code> in <code>Cargo.lock</code>?</p>
<div class="codehilite"><pre><span></span><code>[dependencies]
tokio = { version = &quot;*&quot;, optional = true }

[[test]]
name = &quot;x&quot;
required-features = [&quot;tokio/mio&quot;]
</code></pre></div>



<a name="239749530"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/optional%20dependencies%20%26%20lock%20files/near/239749530" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eh2406 <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/optional.20dependencies.20.26.20lock.20files.html#239749530">(May 21 2021 at 13:25)</a>:</h4>
<p>We have a number of bugs similar to that, I don't know if we have that one yet.</p>



<a name="239769241"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/optional%20dependencies%20%26%20lock%20files/near/239769241" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/optional.20dependencies.20.26.20lock.20files.html#239769241">(May 21 2021 at 15:30)</a>:</h4>
<p>Related rfc, <a href="https://github.com/rust-lang/rfcs/pull/3020">https://github.com/rust-lang/rfcs/pull/3020</a></p>



<a name="239769379"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/optional%20dependencies%20%26%20lock%20files/near/239769379" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/optional.20dependencies.20.26.20lock.20files.html#239769379">(May 21 2021 at 15:31)</a>:</h4>
<p>I think required features is supposed to contain only the features of the crate which were described</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>